﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Company.Master" AutoEventWireup="true"
    CodeBehind="CompanyManagerBuyLead.aspx.cs" Inherits="E_Shop.CompanyManagerBuyLead" %>
<%@ Register Assembly="ESHOP.Controls" Namespace="EBAYVN.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="frmManagerBuyLead" action="CompanyManagerBuyLead.aspx">
    <div style="width: 100%" class="stuff3">
        <div id="MtorightArea" class="clearfx fl">
            <!--curTitle-->
            <div class="blue-left">
                Manage BuyLead _ On Display</div>
            <div class="blue-right">
                <a class="close-blue">
                    <img src="Images/Shared/icon_close_blue.gif" alt="" /></a>
            </div>
            <br />
            <!--//curTitle end-->
            <!----- Offer Manager Table Begin ----->
            <form id="actionForm" name="actionForm" method="post" action="buyoffer.do" class="formSkinB">
            <input type="hidden" name="cmd" value="" />
            <input type="hidden" name="CurPage" value="1" />
            <input type="hidden" name="status" value="6" />
            <!----Content---->
                
                <asp:UpdatePanel ID="UpGrid" runat="server" UpdateMode="Conditional">
                <ContentTemplate>

                    <cc1:Grid runat="server" UseCustomPager="false" PageSize="10" ID="gvListBuy" CssClass="grid"
                        OnRowCommand="gvBuy_RowCommand" 
                        OnRowDataBound="gvBuy_RowDataBound" AllowSorting="True" 
                        onpageindexchanging="gvBuy_PageIndexChanging">
                        <PagerSettings FirstPageText="sản phẩm" PageButtonCount="2" />
                        <Columns>
                            <asp:TemplateField HeaderStyle-CssClass="checkbox" HeaderStyle-Width="10%" HeaderText="#">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                                <ItemStyle Width="5%" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Image" HeaderStyle-Width="10%">
                                <ItemTemplate>
                                    <img src="/Images/Product/<%# Eval("HINHANH") %>" width="40px" height="40px" />
                                                                       
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Subject">
                                <ItemTemplate>
                                    <%# Eval("SUBJECT").ToString().Length>15?Eval("SUBJECT").ToString().Substring(0,15)+"...":
                                    Eval("SUBJECT").ToString()
                                    %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Date" HeaderStyle-Width="15%">
                                <ItemTemplate>
                                    <%# (Eval("NGAYDANG") != null) ?
                                        String.Format("{0:dd/MM/yyyy}", Eval("NGAYDANG"))
                                        : "" %>
                                </ItemTemplate>
                                <ItemStyle Font-Bold="true" ForeColor="Black" HorizontalAlign="Right" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Options" HeaderStyle-Width="15%">
                                <ItemTemplate>
                                    <asp:LinkButton ID="linkDelete" runat="server" CommandArgument='<%# Eval("ID") %>'
                                        CommandName="deleteBuy" CssClass="link" Text='<%# Eval("ISHOW").ToString().Equals("True")?"Delete":"Active" %>' />
                                    <asp:LinkButton ID="linkDetails" runat="server" CommandArgument='<%# Eval("ID") %>'
                                        CommandName="detailBuy" CssClass="link" Text="details" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </cc1:Grid>
                    <!--End Conten--->
            <div class="pagenav">
                <span  class="current"><asp:Label ID="lbnumber" runat="server" Text=""></asp:Label></span>
            </div>
            </form>
            <!----- Offer Manager Table End ----->
                </ContentTemplate>
            </asp:UpdatePanel>

            
            <div style="margin-top: 10px;">
            </div>
        </div>
    </div>
    </form>
</asp:Content>
